home *** CD-ROM | disk | FTP | other *** search
- /**/
-
- call rxmuiopt("DEBUGMODE SHOWERR")
-
- app.Title="PopObject"
- app.Version="$VER: PopObject 1.0 (22.11.99)"
- app.Copyright="©1999, alfie"
- app.Author="alfie"
- app.Description="PopObject show"
- app.Base="POPO"
- app.SubWindow="win"
- win.Title="PopObject"
- win.ID="MAIN"
- win.Contents="mgroup"
- mgroup.0="popu"
- popu.class="popasl"
- popu.type="file"
- popu.fontminheight=11
- popu.fontmaxheight=20
- popu.FilterMacro="parse arg a,b,c;return pos('.c',a)=0"
- popu.domultiselect=1
- popu.ACCEPTPATTERN="#?"
- popu.rejectpattern="#?.o"
- popu.string=string("url")
- popu.dopattern=1
- popu.sleepwindow=1
- popu.initialpattern="#?"
- mgroup.1=text("info")
-
- res=NewObj("application","app")
- if res~=0 then call err(res)
-
- call notify("win",closerequest,1,app,returnid,quit)
- call notify("url","newcontents","everytime",info,set,contents,triggervalue)
-
- res=set("WIN","OPEN",1)
- if res~=0 then call err(res)
-
- s=0
- do forever
- call handle("APP","H",s)
- do i=0 to h.num-1
- if h.i="QUIT" then exit
- if h.i="PO" then do
- call DoMethod("LIST","GETENTRY","ACTIVE","E")
- call set("S","CONTENTS",e)
- end
- say h.num-1 h.i
- end
- s=Wait(or(h.signals,2**12))
- if and(s,2**12)~=0 then exit
- end
- exit
-
- err: procedure expose sigl rxmuierror
- parse arg res
- say signl "["res"]"
- say getrxmuistring(res) "in line" sigl-1 rxmuierror
- exit
-